package com.kaibes.platform.member.admin;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.kaibes.web.admin.AdminMenu;
import com.kaibes.web.admin.AdminMenuRes;

@Configuration
public class MemberMenuInit {

    @Bean
    public AdminMenu memberMenu() {
        AdminMenu second = new AdminMenu();
        second.setKey("member");
        second.setName("会员模块");
        second.setIcon("fab fa-sketch");
        second.setHref("");
        second.setSort(2);
        second.setParentKey(AdminMenuRes.MENU_MAIN);
        return second;
    }
    
    @Bean
    public AdminMenu memberInfoMenu() {
        AdminMenu menu = new AdminMenu();
        menu.setKey("member-info");
        menu.setName("会员信息");
        menu.setIcon("fas fa-portrait");
        menu.setHref("/admin/member/info");
        menu.setSort(1);
        menu.setParentKey("member");
        return menu;
    }
    
    @Bean
    public AdminMenu memberLevelMenu() {
        AdminMenu menu = new AdminMenu();
        menu.setKey("member-level");
        menu.setName("等级会员");
        menu.setIcon("fas fa-user");
        menu.setHref("/admin/member/level");
        menu.setSort(2);
        menu.setParentKey("member");
        return menu;
    }
    
    @Bean
    public AdminMenu memberVipMenu() {
        AdminMenu menu = new AdminMenu();
        menu.setKey("member-vip");
        menu.setName("VIP会员");
        menu.setIcon("fas fa-user-tie");
        menu.setHref("/admin/member/vip");
        menu.setSort(3);
        menu.setParentKey("member");
        return menu;
    }
    
}
